<%@ page import="com.surelution.projects.crm.Market" %>
<%@ page import="com.surelution.projects.crm.OwnStation" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:javascript library="jquery" plugin="jquery"/>
		<resource:dateChooser />
		<script type="text/javascript" src="${resource(dir:'js/datechooser',file:'datechooser.js')}"></script>
        <g:set var="entityName" value="${message(code: 'market.label', default: 'Market')}" />
        <title><g:message code="default.marketImport.label" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.marketImport.label" args="[entityName]" />(客户普查表)</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${marketInstance}">
            <div class="errors">
                <g:renderErrors bean="${marketInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:uploadForm action="mImport">
                <div class="dialog">
            		选择文件：<g:field type="file" name="marketFile"/><br>
            	</div>
            	<div class="buttons">
            		<span class="button"><g:submitButton name="upload" class="save" value="${message(code: 'default.button.upload.label', default: 'Upload')}" /></span>
            	</div>
            </g:uploadForm>
		</div>

    </body>
</html>
